<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div align="center">
    <h2>Django Form测试<h3>--账户修改</h3></h2>
    <hr>
    {% if img %}
    <img style="width:100px;height=100px;" src="/media/{{ img }}">
    {% endif %}
    <form action="" method="post" enctype="multipart/form-data">
        {% csrf_token %}
        {{ formobj.as_p }}
        <input type="hidden" name="img1" id="img1" value="{{ img }}">

        <div align="center">
            <input type="submit" value="保存">
            <a href="/list_loguser/">返回</a>
        </div>
    </form>
</div>
</body>
</html>
